package com.wjc.train.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.business.req.TrainSeatQueryReq;
import com.wjc.train.business.req.TrainSeatSaveReq;
import com.wjc.train.business.resp.TrainSeatQueryResp;

/**
 * <p>
 * 座位表 服务类
 * </p>
 *
 * @author Guessed
 * @since 2023-08-03
 */
public interface ITrainSeatService  {

  /**
     * 保存或修改
     * @param trainseatSaveReq
     */
    void save(TrainSeatSaveReq trainseatSaveReq);

    /**
     * 分页查询
     * @param page
     * @param trainseatQueryReq
     * @return
     */
    IPage<TrainSeatQueryResp> queryList(IPage<TrainSeatQueryResp> page, TrainSeatQueryReq trainseatQueryReq);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

    void genTrainSeat(String trainCode);
}
